package org.shop.service;

import java.util.List;
import java.util.Map;

import org.shop.entity.Favorites;
import org.shop.service.base.BaseService;

public interface FavoritesService  extends BaseService<Favorites, Long>{
	
	/**
	 * 根据TargetIdAndFavoriteType查询Favorites信息
	 * @param favorites
	 * @return
	 */
	public Favorites getFavoritesByTargetIdAndFavoriteType(Favorites favorites);
	
	/**
	 * 获取我的收藏
	 * @param params
	 * @return
	 */
	public List<Map<String, Object>> getFavoritesList(Map<String, Object> params);
	
	/**
	 * 根据TargetIdAndFavoriteType删除Favorites信息
	 * @param favorites
	 * @return
	 */
	public int delFavoritesByTargetIdAndFavoriteType(Favorites favorites);
}